package com.yanmaohu.yulia.bean;

import java.util.List;

/**
 * @author Bright Lee
 */
public final class TransformElementList {

    private int beginIndex;
    private int endIndex;
    private List<TransformElement> transformElementList;

    public TransformElementList(List<TransformElement> transformElementList) {
        this.beginIndex = transformElementList.get(0).getBeginIndex();
        this.endIndex = transformElementList.get(transformElementList.size() - 1).getEndIndex();
        this.transformElementList = transformElementList;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public int size() {
        return transformElementList.size();
    }

    public TransformElement get(int index) {
        return transformElementList.get(index);
    }

}
